package com.appserver.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

/**
 * 为了方便配置，需要登陆的接口统一路径
 */
@RestController
@RequestMapping("/activity")
public class ActivityController {
    private static final Logger LOGGER = LoggerFactory.getLogger(ActivityController.class);

//    @Autowired
//    private ChatGroupApiService chatGroupApiService;
//
//    @Autowired
//    private ChatGroupCommonService chatGroupCommonService;
//
//    @Autowired
//    private SmallChatGroupCommonService smallChatGroupCommonService;
//
//    @Autowired
//    private com.onepiece.im.api.IMUserApiService IMUserApiService;
//
//    @Autowired
//    private ActivityCommonService activityCommonService;
//
//    @Autowired
//    private FansApiService fansApiService;
//
//
//    @RequestMapping(path = "/activity", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
//    public String createActivity(@RequestHeader(value = "appId", required = false) Integer appId
//            , @RequestBody ActivityBean activityBean) {
//        return activityCommonService.createActivity(appId, activityBean);
//    }
//
//    /**
//     * 审核或修改活动状态
//     * @param id
//     * @param appId
//     * @param activityBean
//     * @return
//     */
//
//    @RequestMapping(path = "/activity/{id:\\d+}", method = RequestMethod.PUT, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
//    public String modifyActivity(@PathVariable("id") Long id,@RequestHeader(value = "appId", required = false) Integer appId
//            , @RequestBody ActivityBean activityBean) {
//        return activityCommonService.modifyActivity(id, appId, activityBean);
//    }
//
//
//    @RequestMapping(path = "/activity/{id:\\d+}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
//    public String deleteActivity(@PathVariable("id") Long id, @RequestHeader(value = "appId", required = false) Integer appId
//            ,@RequestBody ActivityBean activityBean) {
//        return activityCommonService.deleteActivity(id, appId, activityBean);
//    }
//
//
//    @RequestMapping(path = "/activity/JoinActivity", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
//    public String joinActivity(@RequestHeader(value = "appId", required = false) Integer appId
//            , @RequestParam(value = "id", required = true) Long id) {
//        return activityCommonService.joinActivity(id, appId);
//    }




}
